from django.urls import path
from rest_framework.routers import SimpleRouter

from vip import views

router = SimpleRouter()
# router.register('vipcard', views.VipCardView, 'vipcard')

urlpatterns = [
    path('vipuser/<int:pk>', views.VipUserView.as_view({'get': 'retrieve', 'put': 'update'})),
    path('vipcard/<int:pk>', views.VipCardView.as_view({'get': 'retrieve'})),
    path('vipuser/', views.VipUserView.as_view({'get': 'list','post':'create'})),
    path('vipcard/', views.VipCardView.as_view({'get':'list'})),
    # path('vipnum/', views.VipNumView.as_view()),
]

urlpatterns += router.urls
